

def common_assert(testcase,resp,status_code,status,exp_result):
        data_v=resp.json()
        testcase.assertEqual(status_code, resp.status_code)
        testcase.assertEqual(status, data_v['status'])
        testcase.assertIn(exp_result, data_v['description'])

def com_assert(testcase,resp,status_code):
        testcase.assertEqual(status_code, resp.status_code)
